package cc.admin.modules.sys.service;

import cc.admin.modules.sys.entity.SysAnnouncement;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * @Description: 系统通告表
 * @Author: jeecg-boot
 * @Date:  2019-01-02
 * @Version: V1.0
 */
public interface ISysAnnouncementService extends IService<SysAnnouncement> {

	public void saveAnnouncement(SysAnnouncement sysAnnouncement);

	public boolean upDateAnnouncement(SysAnnouncement sysAnnouncement);

	public void saveSysAnnouncement(String title, String msgContent);

	public Page<SysAnnouncement> querySysCementPageByUserId(Page<SysAnnouncement> page,String userId,String msgCategory);

	public Page<SysAnnouncement> queryMessagePageByUserId(Page<SysAnnouncement> page,String userId);

	void readTheMessage(SysAnnouncement sysAnnouncement);

	void batchProcessingRead(String[] list);

	void flowTheMessage(Map<String, Object> flowData);

	void saveSystemMessage(String[] userIds,SysAnnouncement sysAnnouncement);

	void saveAllSystemMessage(SysAnnouncement sysAnnouncement);

	void batchRead(String [] ids);

    Long getAnnouncementCount();

    void popupMessage(SysAnnouncement sysAnnouncement);
}
